package supershop.dto;

public class ProductDTO {

	private String pname;//商品名称模糊查询
	private Integer stock;//库存
	private String isPutOnSale;//是否上架
	private Integer categoryId;//所属分类
	private String isToday;//是否是今日必抢
	
	private Integer page;
	private Integer limit;
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	public String getIsPutOnSale() {
		return isPutOnSale;
	}
	public void setIsPutOnSale(String isPutOnSale) {
		this.isPutOnSale = isPutOnSale;
	}
	public Integer getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	public String getIsToday() {
		return isToday;
	}
	public void setIsToday(String isToday) {
		this.isToday = isToday;
	}
	public Integer getPage() {
		return (page-1)*getLimit();
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getLimit() {
		return limit;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
}
